package sp.controller.platform;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import sp.service.BookCategoryService;
import sp.service.BookService;
import sp.service.DataDictService;
import sp.service.PermissionService;
import sp.service.RoleService;
import sp.service.UserService;
import sp.util.redis.RedisAPI;

public class BaseController {
	
	protected static Logger log = Logger.getLogger(BaseController.class);
	
	
	/*-------------------------- 用户相关  ------------------------------*/
	@Autowired
	private UserService userService;
	
	@Autowired
	private RoleService roleService;

	@Autowired
	private PermissionService permissionService;
	
	@Autowired
	private RedisAPI redisApi;
	
	/*-------------------------- 图书业务相关  ------------------------------*/
	
	@Autowired
	private BookCategoryService categoryService;
	
	@Autowired
	private BookService bookService;
	
	@Autowired
	private DataDictService dataDictService;
	
	
	
	
	public BookCategoryService getCategoryService() {
		return categoryService;
	}
	
	public BookService getBookService() {
		return bookService;
	}
	
	public DataDictService getDataDictService() {
		return dataDictService;
	}
	
	public UserService getUserService() {
		return userService;
	}
	
	
	public RoleService getRoleService() {
		return roleService;
	}
	
	public PermissionService getPermissionService() {
		return permissionService;
	}
	
	public RedisAPI getRedisApi() {
		return redisApi;
	}

/*	public BookImgListService getBookImgListService() {
		return bookImgListService;
	}

	public void setBookImgListService(BookImgListService bookImgListService) {
		this.bookImgListService = bookImgListService;
	}*/

}
